<html>
<head>
	<title><?echo $username?> - Live Support for website</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<script language="javascript" src="javascript/main.js"></script>
	<script language="javascript" src="javascript/chat.js"></script>
	<LINK href="styles/main.css" type=text/css rel=stylesheet>
</head>
<body leftmargin="0" topmargin="0">
<table width="650" border="0" cellspacing="5" cellpadding="0" class="stform" align="center">
  <tr>
    <td width="30%" rowspan="3" style="background:#7AA0E6; padding-top:5;" valign="top" align="center">
		<img src="images/online.gif">
		<div id="listonline">Conecting...</div>
	</td>
    <td width="70%" align="right">
		<input type="image" src="images/send-file-over.gif" value="File"/>
		<input type="image" src="images/send-transcript-over.gif" onClick="hasSendEmail=1" value="Email"/>
		<input type="image" src="images/print-transcript-over.gif" onClick="printdiv('displaydiv')" value="Print"/>
		<input type="image" src="images/sound-on.gif" />
		<input type="image" src="images/logout-over.gif" onClick="Logout()" value="Logout"/>
	</td>
  </tr>
  <tr>
    <td>
		<div id="displaydiv" style="width:450; height:200; border:1px #7F9DB9 solid; background:#ffffff;overflow:auto">
		</div>
	</td>
  </tr>
  <tr>
    <td>
		<input type="text" id="input_text" style="width:360" onKeyUp="changebut(this,'bsend')"
		onkeypress='if(event.keyCode==13)SendMessage();'/>
		<input type="button" id="bsend" style="width:50" value="Send" onClick="SendMessage()" disabled="disabled"/>
		&nbsp;&nbsp;<span id="densang"></span></td>
  </tr>
</table>
<script>
var username='<?echo $username?>';
var TIMEREQUEST=<?echo _TIMEREQUEST?>;
AutoCheck();
$("input_text").focus();
function Logout()
{
	setTimeout("location.href='chat.php?opt=logout'",800);
	clearTimeout(tout);
}
self.resizeTo(665,420);
</script>
</body>
</html>